package com.worthtech.billportal.bean;

import java.sql.Timestamp;

/**
 * WtBankSms entity. @author MyEclipse Persistence Tools
 */

public class WtBankSms implements java.io.Serializable {

	// Fields

	private String merchant;
	private String name;
	private String termid;
	private String mobile;
	private String bankname;
	private String flag;
	private Timestamp crdate;

	// Constructors

	/** default constructor */
	public WtBankSms() {
	}

	/** minimal constructor */
	public WtBankSms(String termid, String bankname) {
		this.termid = termid;
		this.bankname = bankname;
	}

	/** full constructor */
	public WtBankSms(String merchant, String name, String termid,
			String mobile, String bankname, String flag, Timestamp crdate) {
		this.merchant = merchant;
		this.name = name;
		this.termid = termid;
		this.mobile = mobile;
		this.bankname = bankname;
		this.flag = flag;
		this.crdate = crdate;
	}

	// Property accessors

	public String getMerchant() {
		return this.merchant;
	}

	public void setMerchant(String merchant) {
		this.merchant = merchant;
	}

	public String getName() {
		return this.name;
	}

	public void setName(String name) {
		this.name = name;
	}

	public String getTermid() {
		return this.termid;
	}

	public void setTermid(String termid) {
		this.termid = termid;
	}

	public String getMobile() {
		return this.mobile;
	}

	public void setMobile(String mobile) {
		this.mobile = mobile;
	}

	public String getBankname() {
		return this.bankname;
	}

	public void setBankname(String bankname) {
		this.bankname = bankname;
	}

	public String getFlag() {
		return this.flag;
	}

	public void setFlag(String flag) {
		this.flag = flag;
	}

	public Timestamp getCrdate() {
		return this.crdate;
	}

	public void setCrdate(Timestamp crdate) {
		this.crdate = crdate;
	}

	public boolean equals(Object other) {
		if ((this == other))
			return true;
		if ((other == null))
			return false;
		if (!(other instanceof WtBankSms))
			return false;
		WtBankSms castOther = (WtBankSms) other;

		return ((this.getMerchant() == castOther.getMerchant()) || (this
				.getMerchant() != null
				&& castOther.getMerchant() != null && this.getMerchant()
				.equals(castOther.getMerchant())))
				&& ((this.getName() == castOther.getName()) || (this.getName() != null
						&& castOther.getName() != null && this.getName()
						.equals(castOther.getName())))
				&& ((this.getTermid() == castOther.getTermid()) || (this
						.getTermid() != null
						&& castOther.getTermid() != null && this.getTermid()
						.equals(castOther.getTermid())))
				&& ((this.getMobile() == castOther.getMobile()) || (this
						.getMobile() != null
						&& castOther.getMobile() != null && this.getMobile()
						.equals(castOther.getMobile())))
				&& ((this.getBankname() == castOther.getBankname()) || (this
						.getBankname() != null
						&& castOther.getBankname() != null && this
						.getBankname().equals(castOther.getBankname())))
				&& ((this.getFlag() == castOther.getFlag()) || (this.getFlag() != null
						&& castOther.getFlag() != null && this.getFlag()
						.equals(castOther.getFlag())))
				&& ((this.getCrdate() == castOther.getCrdate()) || (this
						.getCrdate() != null
						&& castOther.getCrdate() != null && this.getCrdate()
						.equals(castOther.getCrdate())));
	}

	public int hashCode() {
		int result = 17;

		result = 37 * result
				+ (getMerchant() == null ? 0 : this.getMerchant().hashCode());
		result = 37 * result
				+ (getName() == null ? 0 : this.getName().hashCode());
		result = 37 * result
				+ (getTermid() == null ? 0 : this.getTermid().hashCode());
		result = 37 * result
				+ (getMobile() == null ? 0 : this.getMobile().hashCode());
		result = 37 * result
				+ (getBankname() == null ? 0 : this.getBankname().hashCode());
		result = 37 * result
				+ (getFlag() == null ? 0 : this.getFlag().hashCode());
		result = 37 * result
				+ (getCrdate() == null ? 0 : this.getCrdate().hashCode());
		return result;
	}

}